﻿<Page
    x:Class="Manhua2.Pages.SearchResultPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Manhua2.Pages"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Style="{StaticResource LayoutRootStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <Button x:Name="btnBack" Margin="36,0, 0,26" Style="{StaticResource BackButtonStyle}" Click="btnBack_Click" />
            <TextBlock Margin="20, 0, 0, -10" FontSize="36" VerticalAlignment="Center" Style="{StaticResource TitleTextStyle}" Text="搜索结果" />
            <TextBlock x:Name="txtQueryText" Margin="20, 0, 0, -10" FontSize="36" VerticalAlignment="Center" Style="{StaticResource TitleTextStyle}" />
        </StackPanel>
        <GridView x:Name="results" Margin="36, 0"
                  Grid.Row="1"
                  SelectionMode="None"
                  IsSwipeEnabled="False"
                  IsItemClickEnabled="True"
                  ItemTemplate="{StaticResource ComicItemTemplate}"
                  ItemClick="GridView_ItemClick">            
        </GridView>
    </Grid>
    
    <Page.BottomAppBar>
        <AppBar>
            <Button x:Name="btnHome" Style="{StaticResource HomeAppBarButtonStyle}"
                        AutomationProperties.Name="主页" Click="btnHome_Click" />
        </AppBar>
    </Page.BottomAppBar>
</Page>